<template>
  <div class="home">
    <section class="hero">
      <div class="container">
        <h1>创新产品，改变未来</h1>
        <p>我们致力于为客户提供最优质的产品和服务</p>
        <NuxtLink to="/products" class="btn-primary">
          查看产品
        </NuxtLink>
      </div>
    </section>

    <section class="features">
      <div class="container">
        <h2>核心优势</h2>
        <div class="feature-grid">
          <div class="feature-item">
            <h3>高性能</h3>
            <p>优化的性能表现，快速响应</p>
          </div>
          <div class="feature-item">
            <h3>易使用</h3>
            <p>简洁直观的用户界面</p>
          </div>
          <div class="feature-item">
            <h3>可扩展</h3>
            <p>灵活的架构，支持定制</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.features {
  padding: 80px 20px;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #667eea;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
</style>